package com.xhtt.modules.cfg.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.common.utils.Query;
import com.xhtt.modules.cfg.dao.CfgWarnSjMapper;
import com.xhtt.modules.cfg.entity.CfgWarnSj;
import com.xhtt.modules.cfg.service.CfgWarnSjService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商检报警设置 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-04-10
 */
@Service
public class CfgWarnSjServiceImpl extends ServiceImpl<CfgWarnSjMapper, CfgWarnSj> implements CfgWarnSjService {

    @Override
    public PageUtils sjList(Map<String, Object> params) {
        Page<CfgWarnSj> page = new Query<CfgWarnSj>(params).getPage();
        List<CfgWarnSj> list = baseMapper.sjList(page, params);
        page.setRecords(list);
        return new PageUtils(page);
    }

    @Override
    public List<String> sjCompanyList() {
        List<String> list = this.baseMapper.sjCompanyList();
        return list;
    }
}
